<template>
	<view>
		<view class="tp-bgf tp-pd30 tp-mb2" @click="show(item)" v-for="(item,index) in list" :key="index">
			<view class="tp-fz30">
				{{item.textTitle}}
			</view>
			<view class="tp-mt10">
				{{item.updateTime || ''}}
			</view>
		</view>
		<Notice ref="notice" :noticeInfo="noticeInfo" :isbtn="true"></Notice>
	</view>
</template>

<script>
	import Notice from '@/components/common/notice.vue'
	export default {
		components: {
			Notice
		},
		data() {
			return {
				list: [], // 新手指引列表
				noticeInfo: {} // 须知信息
			};
		},
		onLoad() {
			this.getInfo()
		},
		methods: {
			// 获取数据
			getInfo() {
				this.$http.get(this.$api.orderText, {
					type: 1,
				}).then(res => {
					if (res.code === 200) {
						this.list = res.data.list
					}
				})
			},
			// 弹框显示
			show(item){
				this.noticeInfo = item
				this.$refs.notice.show()
			}
		}
	}
</script>

<style lang="scss">

</style>
